package Zuoye.zuoye5;

import java.math.BigDecimal;

public class Yinka extends  Money{
    public Yinka(String id, String name, int phone, double money) {
        super(id, name, phone, money);
    }

    @Override
    public void payMoney( double paymoney) {
        BigDecimal newmoney = BigDecimal.valueOf(paymoney).multiply(BigDecimal.valueOf(0.9));
        System.out.println("使用银卡支付"+"实际支付："+newmoney);

    }
}
